<?php if (!defined('THINK_PATH')) exit();?>﻿<html>
<head>
<title>my html5 video demo app</title>
</head>
<body>
<?php echo ($login); ?>
<?php echo ($register); ?>
<?php echo ($upload); ?>
<?php echo ($logout); ?>
<?php echo ($usercenter); ?>
<br/>

<table >
	<hr/><?php echo ($page); ?><br/><hr/>
	<?php if(is_array($videolist)): $i = 0; $__LIST__ = $videolist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
    <td rowspan="5">
    	<div><img src="<?php echo ($vo["screenshotdir"]); ?>" alt="视频截图" height=120 width=160/>
    	</div>
    </td>
    <td >视频标题:<?php echo ($vo["videotitle"]); ?></td>
  </tr>
  <tr>
    <td>视频类型:<?php echo ($vo["videotype"]); ?></td>
  </tr>
  <tr>
    <td>视频大小:<?php echo ($vo["videosize"]); ?></td>
  </tr>
  <tr>
    <td>描述： <?php echo ($vo["description"]); ?></td>
  </tr>
  <tr>
    <td><a href=__APP__/play?videoname=<?php echo ($vo["videodir"]); ?>>播放</a>&nbsp;
    	
    	<a href=__APP__/download?videoname=<?php echo ($vo["videodir"]); ?>>下载</a>&nbsp;
    	<?php if(($vo["username"])  ==  $_SESSION['username']): ?><a href=__APP__/deleteVideo?videoname=<?php echo ($vo["videodir"]); ?>>删除</a><?php endif; ?>

	</td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>

</table>
<hr/><?php echo ($page); ?><br/><hr/>

</body>



</html>